export default {
  // 用户信息
  userInfo: state => state.app.userInfo || null,
	// 用户ID
  userId: state => state.app.userInfo ? state.app.userInfo.id : '',
	token: state => state.app.token || '',
	// 选材搜索历史
	materialHistory: state => state.app.materialHistory || [],
	// 成品搜索历史
	productHistory: state => state.app.productHistory || [],
	isLogin: state => !!state.app.userInfo,
};
